package ModelLayer;		//makes this class a part of the ModelLayer package

/**
 * Write a description of class RentOrder here.
 * @author (ucn-1semprojekt-dm78-gruppe1) 
 */
@SuppressWarnings("serial")
public class RentOrder extends Order
{
    private String recallDate;

    /**
     * Constructor for objects of class RentOrder
     */
    public RentOrder(int ordernr, String date, double totalPrice, Employee employee, int deliveryDiscount, Customer customer, String recallDate)
    {
        super(ordernr, date, totalPrice, employee, deliveryDiscount, customer);
        this.recallDate = recallDate;
    }

    /**
     * Get the recall date of the rented item on the Order
     * @return recallDate
     */
    public String getRecallDate()
    {
        return recallDate;
    }
    
    /**
     * Set the recall date of the rented item on the Order
     * @param newRecallDate
     */
    public void setRecallDate(String newRecallDate)
    {
    	recallDate = newRecallDate;
    }
    
    public double calculateTotalPrice()
    {
        return super.calculatePrice();
    }
}
